package com.project.controller;

import com.project.bean.ClientBean;
import com.project.service.IClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("client")
public class ClientController {
    @Autowired
    private IClientService service;
@RequestMapping("findByYear")
    public List<ClientBean> findByYear(String year){
        return service.findByYear(year);
    }
@RequestMapping("findYer")
public List<Integer> findYer(){
    return service.findYer();
    }
}
